/*
 * Copyright (C) 2009-2012 - Roman Kalynchuk
 *
 * This file is part of REngine.
 *
 * REngine is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * REngine is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with REngine.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __ISUBSYSTEM_H__
#define __ISUBSYSTEM_H__

#include "kernel\kerneltypes.h"
#include "kernel\refcount.h"

namespace rengine3d {

	//!  Interface for engine subsystems 
	class ISubSystem: public CRefCount {
	public:
		virtual bool Init(void) = 0;
		virtual void Shutdown(void) = 0;

		virtual bool IsInitialized(void) { return m_initialized; };

		virtual string_t GetName(void) = 0;
		virtual string_t GetDescription(void) = 0;
		virtual string_t GetVersion(void)= 0;
	public:
		bool m_initialized;
	};
}

#endif
